//
//  HBPayCoinModel.m
//  HeartBeat
//
//  Created by karong on 2023/9/14.
//

#import "HBPayCoinModel.h"

@implementation HBPayModel

+ (NSDictionary *)mj_objectClassInArray {
    return @{@"buy_percent":NSClassFromString(@"HBPayCoinModel")};
}

- (void)calculationPrice {
    for (HBPayCoinModel * item in self.buy_percent) {
        item.originalPrice = item.chapter_num * self.unit_price;
        item.discountedPrice = floor(item.originalPrice * item.percent / 100.0f);
    }
}
@end

@implementation HBPayCoinModel

@end
